package org.javaboy.vhr.utils;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class IdGenerator {

	@Autowired
	private RedisTemplate<String, Object> redisTemplate;
	
	public static RedisTemplate<String, Object> redis;
	
	@PostConstruct
	public void getTemplate() {
		redis = this.redisTemplate;
	}
}
